<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class OrderSettlementDivid extends Model
{
    protected $table = 'mckj_org_order_divided';

    const UPDATED_AT = 'updated_time';

    const CREATED_AT = 'created_time';

    public function settlement()
    {
        return $this->belongsTo(OrderSettlement::class, "settlement_id");
    }

    public function order()
    {
        return $this->belongsTo(Order::class, "order_id");
    }

    public function station()
    {
        return $this->belongsTo(Station::class, 'mcstation_id');
    }

    public function carbarn()
    {
        return $this->belongsTo(Carbarn::class, 'cart_id');
    }
}
